import os
pathDir = os.listdir('datasets/gmot/query')
for i in pathDir:
    # new_name = i[5:7]
    name = i.replace("c1","c2")
    os.rename('datasets/gmot/query/'+i, 'datasets/gmot/query/'+name)
    # first = i[]
    print(name)